#include "myvideowidget.h"

void Myvideowidget::slotClicked() {
	if(this->isFullScreen())
		this->setFullScreen(false);
	//else
	//	this->setFullScreen(true);
}

void Myvideowidget::paintEvent(QPaintEvent *event)
{
	QPainter painter(this);
	QPen pen;
	pen.setColor(Qt::red);
	pen.setWidth(4);
	painter.setPen(pen);
	painter.drawRect(this->rect());
	painter.end();
}

void Myvideowidget::mousePressEvent(QMouseEvent* event)
{
	emit clicked();
	slotClicked();
}
